Page({
  data: {
    expressShowed:false,
    currentExpress:null,
    expressList: ['顺丰速运','圆通快递','中国邮政','百世快递','中通快递','韵达快递','全丰快递','京东物流','申通快递'],
    currentExpress: ['顺丰速运'],
  },
  showExpressPop(e) {
    this.setData({expressShowed:true});
  },
  onPopClose(e) {
    this.setData({expressShowed:false});
  },
  onExpressChange(e) {
    console.log('onExpressChange:',e);
  },
  toggle(e) {
    let index=e.currentTarget.dataset.index;
    console.log('toggle:',index);
    this.setData({currentExpress:[this.data.expressList[index]]});
  },
  save(e) {
    wx.showToast({
      title: '保存成功',
    })
  }
})